package com.rr.mymoney.bo;

import org.springframework.transaction.annotation.Transactional;

import com.rr.mymoney.model.Tag;

@Transactional
public interface TagBo {
    @Transactional
    public void saveOrUpdate(Tag tag);

    @Transactional(readOnly = true)
    public Tag get(Long id);

    @Transactional(readOnly = true)
    public Tag getByName(String tagName);

    @Transactional
    public void delete(Tag tag);
}
